<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Board/nrf6310/gzll/gzll_ack_payload/main_host_ack_payload.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css" />
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="alias.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="alias.js"></script>

<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>



<script type="text/javascript">
  jQuery(document).ready(function () {
    if(gref){ // Number all _img and _table classes
      gref();
    }
  });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->

<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">nRF Gazell
   &#160;<span id="projectnumber">version 0.4.2</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('main__host__ack__payload_8c.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">Board/nrf6310/gzll/gzll_ack_payload/main_host_ack_payload.c File Reference</div>  </div>
</div>
<div class="contents">

<p>Gazell Link Layer Host with Payload in ACK example.  
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &quot;<a class="el" href="nrf__gzll_8h_source.html">nrf_gzll.h</a>&quot;</code><br/>
<code>#include &quot;nrf_gpio.h&quot;</code><br/>
<code>#include &quot;nrf_delay.h&quot;</code><br/>
</div>
<p><a href="main__host__ack__payload_8c_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gzll__host__ack__payload__example.html#gae66f6b31b5ad750f1fe042a706a4e3d4">main</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Main function.  <a href="group__gzll__host__ack__payload__example.html#gae66f6b31b5ad750f1fe042a706a4e3d4"></a><br/></td></tr>
<tr><td colspan="2"><div class="groupHeader">Gazell callback function definitions</div></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gzll__host__ack__payload__example.html#ga116b8ce684c3f6fe8c63c371b913aa3e">nrf_gzll_host_rx_data_ready</a> (uint32_t pipe, <a class="el" href="structnrf__gzll__host__rx__info__t.html">nrf_gzll_host_rx_info_t</a> rx_info)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Data packet received callback (Host mode only).  <a href="group__gzll__host__ack__payload__example.html#ga116b8ce684c3f6fe8c63c371b913aa3e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gzll__host__ack__payload__example.html#gac1306762dc2ccfc5c2bbdbe2d85a93aa">nrf_gzll_device_tx_success</a> (uint32_t pipe, <a class="el" href="structnrf__gzll__device__tx__info__t.html">nrf_gzll_device_tx_info_t</a> tx_info)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">ACK received callback (Device mode only).  <a href="group__gzll__host__ack__payload__example.html#gac1306762dc2ccfc5c2bbdbe2d85a93aa"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gzll__host__ack__payload__example.html#ga0642fed399ed3ec41406cd4323edf5ad">nrf_gzll_device_tx_failed</a> (uint32_t pipe, <a class="el" href="structnrf__gzll__device__tx__info__t.html">nrf_gzll_device_tx_info_t</a> tx_info)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Transmission failed callback (Device mode only).  <a href="group__gzll__host__ack__payload__example.html#ga0642fed399ed3ec41406cd4323edf5ad"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gzll__host__ack__payload__example.html#ga70d3a691deff3748a4a8a17a2feceec2">nrf_gzll_disabled</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Disabled callback.  <a href="group__gzll__host__ack__payload__example.html#ga70d3a691deff3748a4a8a17a2feceec2"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="member-group"></a>
Configuration</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gae28843c923b3481f8a94798e7ccba523"></a><!-- doxytag: member="main_host_ack_payload.c::PIPE_NUMBER" ref="gae28843c923b3481f8a94798e7ccba523" args="" -->
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gzll__host__ack__payload__example.html#gae28843c923b3481f8a94798e7ccba523">PIPE_NUMBER</a>&#160;&#160;&#160;0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">We use pipe 0 in this example. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga2a2f690f8bdeeb4003203ff5e3edaffc"></a><!-- doxytag: member="main_host_ack_payload.c::BUTTONS" ref="ga2a2f690f8bdeeb4003203ff5e3edaffc" args="" -->
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gzll__host__ack__payload__example.html#ga2a2f690f8bdeeb4003203ff5e3edaffc">BUTTONS</a>&#160;&#160;&#160;NRF_GPIO_PORT_SELECT_PORT0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">GPIO port for reading from buttons. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga61686d33603491344883775b9b31e172"></a><!-- doxytag: member="main_host_ack_payload.c::LEDS" ref="ga61686d33603491344883775b9b31e172" args="" -->
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gzll__host__ack__payload__example.html#ga61686d33603491344883775b9b31e172">LEDS</a>&#160;&#160;&#160;NRF_GPIO_PORT_SELECT_PORT1</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">GPIO port for writing to LEDs. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gaed1097d348540e6d609ced933dfaa26b"></a><!-- doxytag: member="main_host_ack_payload.c::TX_PAYLOAD_LENGTH" ref="gaed1097d348540e6d609ced933dfaa26b" args="" -->
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gzll__host__ack__payload__example.html#gaed1097d348540e6d609ced933dfaa26b">TX_PAYLOAD_LENGTH</a>&#160;&#160;&#160;1</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">We use 1 byte payload length when transmitting. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga4844b8db0c242615f17e206b0d60f713"></a><!-- doxytag: member="main_host_ack_payload.c::data_payload" ref="ga4844b8db0c242615f17e206b0d60f713" args="[32]" -->
static uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gzll__host__ack__payload__example.html#ga4844b8db0c242615f17e206b0d60f713">data_payload</a> [32]</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Placeholder for data payload received from host. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga9547289eeaacea7d6cd5612972dbe9d4"></a><!-- doxytag: member="main_host_ack_payload.c::ack_payload" ref="ga9547289eeaacea7d6cd5612972dbe9d4" args="[1]" -->
static uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gzll__host__ack__payload__example.html#ga9547289eeaacea7d6cd5612972dbe9d4">ack_payload</a> [1]</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Payload to attach to ACK sent to device. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga759d0dea462912ee97ccff29518ddd02"></a><!-- doxytag: member="main_host_ack_payload.c::nrf_gzll_error_code" ref="ga759d0dea462912ee97ccff29518ddd02" args="" -->
<a class="el" href="group__gzll__02__api.html#gaa51ebe606da1801bb1ce72b2257356ab">nrf_gzll_error_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gzll__host__ack__payload__example.html#ga759d0dea462912ee97ccff29518ddd02">nrf_gzll_error_code</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Error code. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga8e25166803c7cdf88622f9a8a3827098"></a><!-- doxytag: member="main_host_ack_payload.c::init_ok" ref="ga8e25166803c7cdf88622f9a8a3827098" args="" -->
static bool&#160;</td><td class="memItemRight" valign="bottom"><b>init_ok</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gab20e2b15a100ca5c4f4c832b231e752d"></a><!-- doxytag: member="main_host_ack_payload.c::enable_ok" ref="gab20e2b15a100ca5c4f4c832b231e752d" args="" -->
static bool&#160;</td><td class="memItemRight" valign="bottom"><b>enable_ok</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gaadd75d7dc41331e2bc61200f258f6ed6"></a><!-- doxytag: member="main_host_ack_payload.c::push_ok" ref="gaadd75d7dc41331e2bc61200f258f6ed6" args="" -->
static bool&#160;</td><td class="memItemRight" valign="bottom"><b>push_ok</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gaef58408a1fa031cfa3223de0e71c1e1d"></a><!-- doxytag: member="main_host_ack_payload.c::pop_ok" ref="gaef58408a1fa031cfa3223de0e71c1e1d" args="" -->
static bool&#160;</td><td class="memItemRight" valign="bottom"><b>pop_ok</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga113ad77d98ea218c7d66fc613eaff505"></a><!-- doxytag: member="main_host_ack_payload.c::packet_received" ref="ga113ad77d98ea218c7d66fc613eaff505" args="" -->
static bool&#160;</td><td class="memItemRight" valign="bottom"><b>packet_received</b></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Gazell Link Layer Host with Payload in ACK example. </p>

<p>Definition in file <a class="el" href="main__host__ack__payload_8c_source.html">main_host_ack_payload.c</a>.</p>
</div></div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="main__host__ack__payload_8c.html">main_host_ack_payload.c</a>      </li>

    <li class="footer">
      Copyright &copy 2006-2011 <a href="http://www.nordicsemi.no" style="text-decoration:none">Nordic Semiconductor</a>.
      All Rights Reserved.
      <a href="disclaimer.html">Disclaimer</a>
    </li>
   </ul>
 </div>


</body>
</html>
